import React,{ Component } from 'react';
import { connect } from 'dva';
class RedirectPage extends Component {
    constructor (props) {
        super(props);
        this.state = {
        }
    }
    componentDidMount() {
        const {pay} = this.props;
        document.forms[pay.formName].submit();
    }
    render() {
    const {pay} = this.props;
    const content = pay.form;
    return (
        <div dangerouslySetInnerHTML={{__html: content}}/>
    )
    }
}
function mapStateToProps({pay}) {
    return {
        pay
    }
}
export default connect(mapStateToProps)(RedirectPage);